import 'package:flutter/material.dart';


///provider的使用
///1.CountProvider
class CountProvider extends ChangeNotifier {
  int _count = 0;

  get count => _count;


  ///++
  void add(){
    _count++;
    ///通知刷新
    notifyListeners();
  }
}
